package xuesm.prototype.shallow.jdk;

import java.util.List;

/**
 * @Author: xuesm
 * @Description: 浅克隆实体类
 * @Date: Create in 12:51 2019/4/1
 */
public class UserJDKShallowPrototype implements Cloneable{

	private int age;
	private String name;
	private List<String> hobbies;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getHobbies() {
		return hobbies;
	}

	public void setHobbies(List<String> hobbies) {
		this.hobbies = hobbies;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}
